package com.ssy.jt808.protocol.t1078;

import com.ssy.jt808.protocol.basics.JTMessage;
import com.ssy.jt808.protocol.commons.JT1078;
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.annotation.Message;

/**
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
@Message(JT1078.实时音视频传输请求)
public class T9101 extends JTMessage{

  @Field(lengthUnit=1, desc="服务器IP地址")
  private String ip;
  @Field(length=2, desc="实时视频服务器TCP端口号")
  private int    tcpPort;
  @Field(length=2, desc="实时视频服务器UDP端口号")
  private int    udpPort;
  @Field(length=1, desc="逻辑通道号")
  private int    channelNo;
  @Field(length=1, desc="数据类型：0.音视频 1.视频 2.双向对讲 3.监听 4.中心广播 5.透传")
  private int    mediaType;
  @Field(length=1, desc="码流类型：0.主码流 1.子码流")
  private int    streamType;

  public String getIp(){
    return ip;
  }

  public void setIp( String ip ){
    this.ip = ip;
  }

  public int getTcpPort(){
    return tcpPort;
  }

  public void setTcpPort( int tcpPort ){
    this.tcpPort = tcpPort;
  }

  public int getUdpPort(){
    return udpPort;
  }

  public void setUdpPort( int udpPort ){
    this.udpPort = udpPort;
  }

  public int getChannelNo(){
    return channelNo;
  }

  public void setChannelNo( int channelNo ){
    this.channelNo = channelNo;
  }

  public int getMediaType(){
    return mediaType;
  }

  public void setMediaType( int mediaType ){
    this.mediaType = mediaType;
  }

  public int getStreamType(){
    return streamType;
  }

  public void setStreamType( int streamType ){
    this.streamType = streamType;
  }
}